﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SOMSerialMgr.aspx.cs" Inherits="sWarranty.WEB.SOMSerialMgr" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="../UC/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../CSS/table.css" />
    <link rel="stylesheet" type="text/css" href="../CSS/Menu.css" />
    <link href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" rel="stylesheet"
        type="text/css" />
    <script src="../JS/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="../JS/jquery-ui.js" type="text/javascript"></script>
    <script src="../JS/Menu.js" type="text/javascript"></script>
    <link href="../JS/chosen-master/chosen/chosen.css" rel="stylesheet" type="text/css" />
    <script src="../JS/chosen-master/chosen/chosen.jquery.js" type="text/javascript"></script>
    <script src="../JS/jquery.stickytableheaders.js" type="text/javascript"></script>
    <script src="../JS/jquery.simplemodal.js" type="text/javascript"></script>
    <link href="../JS/basic/css/basic_ie.css" rel="stylesheet" type="text/css" />
    <link href="../JS/basic/css/basic.css" rel="stylesheet" type="text/css" />
    <link href="../JS/basic/css/demo.css" rel="stylesheet" type="text/css" />
    <script>
        $(document).ready(function () {
            $("#txtFromDate").datepicker({ dateFormat: 'mm/dd/yy' });
            $("#txtToDate").datepicker({ dateFormat: 'mm/dd/yy' });

            $("#txtFromDate").attr('readOnly', 'true');
            $("#txtToDate").attr('readOnly', 'true');

            $("table").stickyTableHeaders();

            SetLogger();
        });
        function openPopUp(popUrl, type) {
            var name = 'popUp';
            var appearence = 'dependent=no,menubar=no,resizable=yes,scrollbars=1,' +
                  'status=yes,toolbar=yes,titlebar=yes,' +
                  'width=' + window.screen.availWidth * 80 / 100 + ', height=' + window.screen.availHeight * 80 / 100 + ',resizable:yes,center:yes';
            var openWindow = '';
            if (type == 'open')
                openWindow = window.open(popUrl, name, appearence);
            if (type == 'popup')
                openWindow = window.showModalDialog(popUrl, name, appearence);
            openWindow.focus();
        }
       
    </script>
    <style type="text/css">
        .rgMasterTable
        {
            font-size: 11px !important;
            font-family: tahoma !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ksdjfl" runat="server">
    </asp:ScriptManager>
    <uc1:Header ID="Header1" runat="server" />
    <div class="Mid">
        <div class="Mid1">
            <div id="DataContent">
                <%-- <div>
                    Nội dung bên trái
                </div>--%>
                <div>
                    <div class="TitleTab">
                        <ul>
                            <li><a class="TitleTab_act" href="SOMSerialMgr.aspx">Sell-Out (Daily)</a></li>
                            <li><a href="SOMSerialMgrByW.aspx">Sell-Out Summary(Weekly)</a></li>
                            <li><a href="SOMSerialMgrByD.aspx">Sell-out(SMS hist)</a></li>
                        </ul>
                    </div>
                    <!-- DataGrid Start -->
                    <div class="Search">
                        <table>
                            <tr>
                                <td style="background-color: #F7F7F7">
                                    Period :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFromDate" runat="server" Width="80px" Enabled="true"></asp:TextBox>
                                    <asp:TextBox ID="txtToDate" runat="server" Width="80px" Enabled="true"></asp:TextBox>
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td style="background-color: #F7F7F7">
                                    Region
                                </td>
                                <td>
                                    <asp:DropDownList ID="dropRegion" Width="100%" runat="server" CssClass="chzn-select">
                                        <asp:ListItem Value="00" Text="Select"></asp:ListItem>
                                        <asp:ListItem Value="01" Text="NORTH"></asp:ListItem>
                                        <asp:ListItem Value="02" Text="MIDDLE"></asp:ListItem>
                                        <asp:ListItem Value="03" Text="SOUTH"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td style="background-color: #F7F7F7">
                                    Incentive Confirmed :
                                </td>
                                <td>
                                    <asp:DropDownList ID="dropConfirmIncentive" Width="84px" runat="server" CssClass="chzn-select">
                                        <asp:ListItem Value="0" Text="All"></asp:ListItem>
                                        <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                        <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td style="background-color: #F7F7F7">
                                    Serial No:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSerialNo" runat="server" Width="100px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="background-color: #F7F7F7">
                                    Shop ID/Name :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtShopCode" runat="server" Width="80px"></asp:TextBox>
                                    <asp:TextBox ID="txtShopName" runat="server" Width="160px"></asp:TextBox>
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td style="background-color: #F7F7F7">
                                    Model :&nbsp;
                                </td>
                                <td>
                                    <asp:TextBox ID="txtModel" runat="server" Width="80px"></asp:TextBox>
                                    <asp:TextBox ID="txtSuffix" runat="server" Width="80px" Visible='false'></asp:TextBox>
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td style="background-color: #F7F7F7">
                                    Product:
                                </td>
                                <td>
                                    <asp:DropDownList ID="dropAu" Width="84px" runat="server" CssClass="chzn-select">
                                    </asp:DropDownList>
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td colspan="2">
                                    <asp:Button ID="btnExcel" runat="server" CssClass="button Float-right" Width="60px"
                                        Text="Export" OnClick="btnExcel_Click" />
                                    <asp:Button ID="btnImport" runat="server" CssClass="button Float-right" Width="60px"
                                        Text="Import" />
                                    <asp:Button ID="btnFind" runat="server" CssClass="button Float-right" Width="60px"
                                        Text="Search" OnClick="btnFind_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div style="overflow: auto;">
                        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" CellSpacing="0"
                            OnGroupsChanging="RadGrid1_GroupsChanging" EnableEmbeddedSkins="true" GridLines="None"
                            ShowGroupPanel="True" OnNeedDataSource="RadGrid1_NeedDataSource" OnColumnCreated="RadGrid1_ColumnCreated"
                            Skin="Office2007" OnItemDataBound="RadGrid1_ItemDataBound">
                            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">
                            </ClientSettings>
                            <MasterTableView>
                                <PagerStyle AlwaysVisible="True" />
                                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </ExpandCollapseColumn>
                                <EditFormSettings>
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                </EditFormSettings>
                            </MasterTableView>
                            <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                        </telerik:RadGrid>
                    </div>
                    <!-- DataGrid End -->
                </div>
            </div>
            <div class="Clear_both">
            </div>
        </div>
       
    </div>
    <script type="text/javascript">
        $(".chzn-select").chosen();
    </script>
    </form>
</body>
</html>
